<?php 
    $tmps = new XTemplate('sites/views/monhoc/list.html');
    $total = $db->GetArray("select * from monhoc");
    //print_r(count($total));die;
    
   
   
        $sql = "select * from monhoc";
   
    $arr = $db->GetAll($sql);
    //print_r($arr);
    if(count($arr)>0){
        foreach($arr as $value){
			$tmps->insert_loop('DSM.MH', array('MH'=>$value));
		}
    }
    
   // $pager = pagenav($base_url, $s, $total, $limit);
    //die('xxxxxxxxx');   
   // $tmps->assign('pager',$html);
    $tmps->assign('title','Danh sách môn học');
    $tmps->parse('DSM');
    $maincontent=$tmps->text('DSM');
?>